// 1.引入创建仓库的文件   applyMiddleware中间件
import { createStore, applyMiddleware } from 'redux'
// 2.引入reducer
import reducers from './reducers';
// 3.引入redux-thunk
import reduxThunk from 'redux-thunk';
// 4.引入日志
import logger from 'redux-logger'
// 5.引入 redux-devtools-extension 配置调试工具
import { composeWithDevTools } from 'redux-devtools-extension';
// 6.导出仓库
export default createStore(reducers, composeWithDevTools(applyMiddleware(logger, reduxThunk)))